package com.ruoyi.web.common.service.impl;

import com.ruoyi.web.common.dto.SearchResult;
import com.ruoyi.web.common.mapper.SearchMapper;
import com.ruoyi.web.common.service.ISearchService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author 范书铭
 * @date 2024年10月15日 11:31
 */

public class SearchServiceImpl implements ISearchService {
    @Autowired
    private SearchMapper searchMapper;
//    @Autowired
//    private TrainArticleMapper trainArticleMapper;
//    @Autowired
//    private TrainCourseMapper trainCourseMapper;

    @Override
    public List<SearchResult> searchAll(String keyWord) {
        return searchMapper.searchAll(keyWord);
    }


}
